added array of doubles to store results of fib function in