added main cpp and makefile