end of chapter 4, except for the final exercises