now mainClass is correctly defined.