Added else if conditional for grade B.