Added getIterator method