An adaptor between the Enumerator class and the iterator class