edge cases on grades not printing correctly