Five smooth beech-wood rings in soft rainbow colours stack onto a rounded peg. Babies learn to grab, compare sizes and put things in order — the first steps of logical thinking.