Added else if conditional for grade D.