Script for grading