Complete exercises for Chapter 5.