Assignment 3 Iteration Solution