A simpler method for learning to control a robot