Bugfixes in Chapter 3 example code.

I've changed a few small typos.