What was the purpose of Hammurabi’s Code?

A.
to create new Babylonian laws to replace traditional Sumerian laws

B.
to ensure that Babylon had written laws for all Babylonians to follow

C.
to ensure that punishments were the same for members of every Babylonian social class

D.
to limit the power of Babylon's upper social classes

B. to ensure that Babylon had written laws for all Babylonians to follow

I took a quiz that had this answer earlier today.