France uses a civil legal system, wherein law arises primarily from written statutes; judges are not to make law, but merely to interpret it (though the amount of judicial interpretation in certain areas makes it equivalent to case law in a common law system). Basic principles of the rule of law were laid in the Napoleonic Code (which was, in turn, largely based on the royal law codified under Louis XIV). In agreement with the principles of the Declaration of the Rights of Man and of the Citizen, law should only prohibit actions detrimental to society. As Guy Canivet, first president of the Court of Cassation, wrote about the management of prisons: "Freedom is the rule, and its restriction is the exception; any restriction of Freedom must be provided for by Law and must follow the principles of necessity and proportionality." That is, Law should lay out prohibitions only if they are needed, and if the inconveniences caused by this restriction do not exceed the inconveniences that the prohibition is supposed to remedy.