pushed mainClass assignment into match statement, removed spurious spaces, removed { } from case statements, removed return values