Add solution to problem 15.