package problems.problem2;

import java.util.Arrays;
import java.util.List;

public class ExamMarksFactory implements ExamMarks.Factory {

    @Override
    public List<ExamMarks> create() {
        return Arrays.asList(new ExamMarksToniImp());
    }
}

@@ -217,25 +217,16 @@
 ist(new 
-ExamMarks
 ToniImp(

change for good name