Solution to fib