Chapter5 exercise 15-18