In this chapter, a Swedish development and research project integrating programming and mathematics will be focused on. The children in the project were 3-5 years old. Preschool children together with their teachers worked with programmable robots especially designed for young children. Several programming activities were developed and introduced in four rounds. Common in all these activities was the children investigating programming and mathematics by trying them out themselves. The results show that the children developed their spatial thinking and their understanding of symbols. Also, they developed their ability to use notions such as ’forward’, ’backward’, ’rotate’ and ’turn’, verbally through symbols and gestures. © The Author(s), under exclusive license to Springer Nature Switzerland AG 2023. All rights reseverd.