What was the purpose of the Hammurabi’s code