refactored submit component by extracting new class responsible for grading of submissions