use mainClass instead of class as a variable name