demo of iterable and iterator interface. note generics need termination at either place ie MyItr implements Iterator<E> and not MyItr<E> implements Iterator<E>