adding old C++ demo code