Sample C++ Code