add example of C++ translation