A theory of reference-dependent behavior