He instituted his famous code of laws (c. 1772 BCE), paid careful attention to the needs of the people, improved irrigation of fields and maintenance of the infrastructures of the cities under his control, while also building opulent temples to the gods