added a base for C++ programs