Code for problem 25.