add equals, hashCode methods to some imple classes.