Added generator example