Iteration class exercise 2