Small edit, now if the student grade is not valid it is setten to 2, not 0