Figure 2-1

Practicing by typing the code in Figure 2-1 of the tutorial book I am
using.