Adding equals and hashcode sample