add missing equals() and hashCode() method.