What were some goals of the Napoleonic code?

To limit the power of the nobles