Exercises 1.5 and 1.6 from Chapter 1