add thinking in C++ and cousera