Finish 9.6.3 exercise.