Code Examples from Head First Design Patterns