updated fibonacci to use a generator instead