Recursion Exercises 9 and 10 front end