Who established the first legal law codes? And in what country?

http://www.fordham.edu/halsall/ancient/hamcode.html

http://en.wikipedia.org/wiki/Babylon