made c++ version of the project