So Joshua made a covenant with the people on that day, and he established for them a statute and a judgment at Shechem.