Chapter 16 exercises done.

Out of chapter knowledge! This is probably tidier than manually redirecting the output streams though.