Overriding equal method for proper contrast.