The `Pattern` class should implement some (simple) `.equals(Object)` and `.hashCode()` methods to be able to be identified equal when being put into a `Set`. Equality in this context can be as simple as the equality of the pattern string.