Code for problem 15.