Although the Code of Hammurabi was essentially humanitarian in its intent and orientation, it contained the eye for an eye theory of punishment, which is a barbarian application of the concept of making the punishment fit the crime.