Adding a small program from Chapter 3.