Added function for grading target comparison