The first legal code in history to be written down was called