Test programs written while reading the book.