Sets mainClass as a var