connecting main with header file