Completes exercises from chapter 10