Which was Hammurabi's most significant accomplishment?

A. the world's first library

B. a written code of law

C. the Hanging Gardens of Babylon

D. the Great Ziggurat at Ur