Goals and the Structure of Experience