Refactoring, Equality test implemented