Adding makefile and code