Final version for recursion exercise, including a separate file to test the recursive functions.