gpa and credits functionality