add Makefile and main.cpp