Solutions for Chapter 7 exercises