Moved all code into fib_sum function for testing