Completed core exercises for recursion.