Purposive behavior in animals and men