Some sample C++ code