Chapter 5 - exercises 1 and 3