Use foreach to iterate using an Iterator