added C++ code