This section describes the robot setup, the data collection by random exploration, the image processing, the acquiring of a forward model with a multi-layer perceptron and with an abstract recurrent neural network, and the methods for the two basic task sets: goal-directed movement planning and mental transformation.