added main .c file