This is a slightly modified model, originally designed & programmed by © Alexey Valuev (www.proghouse.ru). The gymnast performs three exercises, but the programming of the third exercise was recoded for the robotic athlete to perform a RANDOM number of loops, counted by the Colour Sensor, situated some centimetres away from the athlete's left thigh (see photo). This was done for educational purposes (for educational robotics team members).The correctly modified program is shown at the end of the video. The modified code is clever enough to allow for the athlete to endup hanging vertically, nomatter where it's body is, when the loops stop. Enjoy!