Chapter 1, exercises 1--5