added: exercise 1 & 2 of chapter 3