How did the Ten Commandments compare to Hammurabi's Code?

A. Both provided people with a set of rules.
B.Both outlined the punishments for criminals.
C. Both were given to their creators by God.
D.Both were written by biblical prophets.