#371 Implemented iterate method