improved chapter c++