added Makefile and main.cpp