Edited Part 2 of the recursion problem