mesopotamia is considered to be the cradle of civilization and babylon is mostly famous for the code of hammurabi , which was the first written code of laws , and the hanging gardens , which was the first time a man had to restructure the city to get laid .