add examples to explain generator