A written legal code would be am improvement over an oral set of laws because citizens may forget laws, depending on how much there are. Having them written, where everyone can read it, may help them better understand and remember the acts/laws.
They gave us cheap work to help us build stuff
there are 910 years between 2700 BCE and 1790 BCE
all you need to do is subtract them
The industrial revolution increased the power and wealth of "factory owners" mostly, but this is a misleading question, since the revolution increased the wealth of practically everyone except the aristocracy.