finished ex 1: ch17