CppPrimer exercise code.