Chapter 6 exercises

[...]