added Makefile and c source code