fun fib_rec(n: int): int = if n >= 2 then fib_rec(n-1) + fib_rec(n-2) else n