The Code of Hammurabi and the Twelve Tables were designed to