change to be a c++ program