Problem 25, solution and test.