main function's prototype
Calling main recursively