Pupils at an Aberdeen primary school were on the ball as they took part in a penalty kick challenge to learn about robots and coding.

Children at Charleston School in Cove took part in the event, in which they used Lego kits to build their own goalkeepers and programmed them to cover goals in a World Cup penalty shoot-out.

The event was part of a region-wide event organised by Generation Science, which aims to bring the subject to life in the classroom.

Head teacher Laura Fowler said: "We were delighted to welcome the Generation Science tour to the school.

"Bricks and Blocks is an excellent way of engaging children with science and teaching them the basics of computer programming using a hands-on practical approach, which our school can then follow-up with general discussions."

Named Bricks and Blocks, the programme is one of 15 shows and workshops taking place throughout the year.