added main.c and Makefile