Simple C++ Version