The impliment of design pattern example in Head First with C++