The Code of Hammurabi was designed to