Program 3 for class. Making use of the decorator pattern