adding main.cpp and Makefile