adding main.cpp for compilation