updated way to get grade points and calculate GPA