Added Iterative solution