Finish exercises 10.5 and 10.6.