Moved Main to Main class.