Add recursive solution to exercise 7