converted problem 2 to use fibonnaci generator