Adding small program from Chapter 2.