add main.c and Makefile