made grade class to give a grade