Chapter 5 exercises 1-4