Refactoring MyEnumerator class and adding new methods (e.g :previous)