Space in the mammalian brain -- Building a space map -- The space inside -- Sensorimotor integration and state estimation -- Bayesian estimation and inference -- Learning to make accurate predictions -- Learning faster -- The multiple timescales of memory -- Building generative models: structural learning and identification of the learner -- Costs and rewards of motor commands -- Cost of time in motor control -- Optimal feedback control.