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.