Implemented the Iterator methods