Added setGrades()
Fixed saving error