started code using function grade_to_gpa