Sample program to implement my own iterator.

Sample program to implement my own iterator.