Added methods into Assignment and AssignmentCategory to compute average grades