Danish toymaker Lego Group has unveiled a new robotics kit that encourages students to gain programming skills through collaborative, hands-on activities.

Each set of the Spike Prime kit comes with over 500 pieces, for building a variety of creations, and is paired with lesson plans for both students and teachers. It also comes with an app that uses a drag-and-drop programming language.

One of the models, called "Rain or Shine," is programmed to get data from a weather service, which then instructs a Lego robot to move its umbrella or sunglasses based on whether it is raining or sunny in a particular city.