Did some exercises in chapter 3