pattern grading techniques