Added a C++ functions file