Simple C++ engine