Solution to the Fib sequence