Did exercises at end of chapter 3