Solutions for Chapter 4 Exercises and some code snippets...