modified the variable type for grade