A simple example of creating an iterator