cpp.8_12 exercise code.