Moved mains to Main classes