John Rawls was a professor of philosophy at Harvard University who developed the theory of justice as fairness. He argued that justice means giving each person what they deserve or are due. Rawls identified three kinds of justice: compensatory justice refers to compensation for wrongful actions; retributive justice refers to just punishments for wrongdoers; and distributive justice refers to the just distribution of benefits and burdens in society. Distributive justice theories include egalitarianism, which calls for equal shares; capitalist justice, which ties shares to contributions; and socialist justice, which ties shares to needs.