added main.cpp and Makefile