Adding the base template for C++ code