changing the main.cc to main.cpp