Refactoring problem 2 to use a reusable fibonacchi generator