added a simple generator