add interface.c and main.c