added main.c file
filled in main.c