completion of chapter 7 exercises