Question 8 Iteration class exercise