add fib function and timeout example