Exercise for Head First Design Pattern