$patternClass Please test code before submitting. `$patternClass` isn't defined.