Fibonacci method written in IO.