//Added the header for wait function
edited the main with parameters
Commited the whole file