Fix several small typos.

Thanks for these programs -- very instructional! I noticed a couple of typos along the way so here's a small fix.