Added hashCode and equals to classes with member data.