Object Oriented Design and Patterns Book Example