fixed case of classes with weighted grades