Chapter 4 exercises

4, 6, 7, challenge problem: 2