Adding sample C++ code