exercise 11, problem 23