chapter.14.reusing.code.in.cpp