Created makefile and organized code into class