Example of C++ code