update grade_to_gpa() function, still have some problem on or statement