Fixed error with Input class inside Main class