solve exercise 13.16