Example code fig. 8.5 - JHTP9

An example of efficient coding