What empire had advancements in mathematics, astronomy and a code of laws