The doctrine that society is based on an agreement between government and the governed in which people agree to give up some rights in exchange for the protection of others is called