Create def.h

def.h is the header which is related to main.c. It contents the structure definition and the prototypes.