Generator example bug fix

The fibonacci function should be used in the generator example