Chapter 12 exercises done.

Sneaky - never seen `getlogin` before. I like it!