creating the grade functions