Created main.h and completed task 1,2 and 3;

Function prototype in main.h and changed over 5.c to use this header.