add main.cpp and makefile