coding main.c and headerfile