Update equals and hashcode