code works with fib.c 100%