Sample C++ code