hashCode and equals methods now overridden