Added some C++ source code