In Two Treatises of Government, John Locke wrote that the purpose of government was to