added C++ examples