The code of Hammurabi was important to Mesopotamian society because it