added function to save new grade