Chapter 9 exercises.

I meant via using open etc, rather than just renaming at the end.