add main.c
the third versions