My sample code in C++