Pleasures and Pains: A Theory of Qualitative Hedonism