Head First Design Patterns - Sample code