Who claimed that our subjection to pain and pleasure should be the foundation for our laws?

The philosopher Jeremy Bentham claimed that our subjection to pain and pleasure should be the foundation for our laws.