added calc_grade function to all students