Created main of main

added the code for the main function of main