Fixes to Chapter 2 Programs