Working through exercises 2.2 and 2.3 in chapter 2