Iterator Pattern demo.
Iterator Pattern