Implemented the grading for assignment 6.