A class that implements iterators