C++ code and excercises