Chapter 2 for C++ completed