Added grade_output method