solve problem 2 using Fibonacci module