finished ex 2: ch17