Final script for grading