In criminology, the classical school usually refers to the 18th-century work during the Enlightenment by the utilitarian and social-contract philosophers Jeremy Bentham and Cesare Beccaria. Their interests lay in the system of criminal justice and penology and indirectly, through the proposition that "man is a calculating animal", in the causes of criminal behavior. The classical school of thought was premised on the idea that people have free will in making decisions, and that punishment can be a deterrent for crime, so long as the punishment is proportional, fits the crime, and is carried out promptly. Reform The system of law, its mechanisms of enforcement and the forms of punishment used in the 18th century were primitive and inconsistent . Judges were not professionally trained so many of their decisions were unsatisfactory being the product of incompetence, capriciousness, corruption, and political manipulation. The use of torture to extract confessions and a wide range of cruel punishments such as whipping, mutilation, and public executions was commonplace. A need for legal rationality and fairness was identified and found an audience among the emerging middle-classes whose economic interests lay in providing better systems for supporting national and international trade. The social contract John Locke considered the mechanism that had allowed monarchies to become the primary form of government. He concluded that monarchs had asserted the right to rule and enforced it either through an exercise in raw power or through a form of contract, e.g. the feudal system had depended on the grants of estates inland as a return for services provided to the sovereign. Locke proposed that all citizens are equal and that there is an unwritten but voluntary contract between the state and its citizens, giving power to those in government and defining a framework of mutual rights and duties. In Leviathan, Thomas Hobbes wrote, "the right of all sovereigns is derived from the consent of every one of those who are to be governed." This is a shift from authoritarianism to an early model of European and North American democracy where police powers and the system of punishment are means to a more just end. Beccaria In 1764, he published Dei Delitti e Delle Pene (On Crimes and Punishments) arguing for the need to reform the criminal justice system by referring not to the harm caused to the victim, but to the harm caused to society. In this, he explains that