Convert this project into C++, and add a header file