Add hashCode and equals methods.
Add hashCode and equals methods plus a rename.