Chapter 6, part 1

Most of chapt. 5's programming exercises, too