Completed Part 2 of the recursion problem