Pleasures, then, and the avoidance of pains, are the ends that the legislator has in view.