adding generator example