created Justinian's Code, consisting of four works, first is the code of Roman laws. Second is the digest which was opinions from Romes greatest legal thinkers. the third was the institutes which is a law textbook, the fourth the novellas or new laws which were passed after 534 AD. this code served the empire for 900 years. the Hagia Sophia was rebuilt by him.