Corrected Errors in Main