chapter 1 and part of chapter 2 exercises