Added switch cases for the credits and grades.