Adding grade functionality to server.