When you add instances of the given Person class in a HashSet, the resulting hash set is too large. Evidently, duplicates are not found. Remedy this problem by implementing the equals and hashCode methods.