Fit the pattern