Update grade to output a file