Complete ch8 exercise 1