The aim of second Exercise was to use an Iteration function. An Iteration function is a function which keeps on repeating as long a statement is correct. There are two types of iteration functions “for” & “while”. (
http://processing.org/reference/for.html).