In Hammurabi code, the Social structure is composed of the Upper Class: Awilum, Free man class: Mushkenum, and the Slave Class: Wardum. A person born at this time, must have a specific class. if you are born a slave, you can buy your freedom. This way, Hammurabi successfully gained peace and order.