Add an iteration example

See #40
Merge pull request #44 from sphia/iteration-example

Add an iteration example