starting work adding in C++ code