Add solution for exercise 15.