added generator iteration example