Finish section 8.5 exercise 1