complete Chapter8 exercise 1