program works as specified, added Makefile