Added a simple generator example