moved code to a src folder and added makefile