Exercise chapter 3 finished