So Joshua cut a covenant with the people that day, and set for them a statute and an ordinance in Shechem.