completes exercises in chapter 7