added equals and hashcode methods in Family