Added outline to main function