fib working with pointers