A social contract for government