main method stops complaining about undeclared String type