Complex programming is introduced using an example of a kangaroo that needs to have a drink without being eaten by a crocodile. The kangaroo needed to check that the crocodile was not near the water before she had a drink and she needed more than one drink during the day. The kangaroo sequences steps that she needs to take to have a drink without the crocodile getting to her. She uses algorithms that include selection and a loop. Making sure that the steps are done in the correct order is important and so is repeating the algorithm.
Children could write a complex program to control traffic lights, a washing machine or a coffee machine using repeating, timing and IF commands. The IF commands might include: IF traffic light 1 is red, THEN traffic light 3 is green or IF the water is hot THEN add the washing powder.