added main.c and the Makefile for it