Head First Design Patterns C# Code