after fixing bugs, recursive fib() and factorial() both work properly