Applying the composite pattern to build an Odometer
It is easy to add methods correctly to the following. Modify
AODigit (adding the method), then add the method to each type of AODigit (ODigit and OEnd).
Code here is easier to maintain than standard linked list code (notice no checking
for nulls everywhere).