added the main.cpp file and edited the makefile to compile it