Implement equals() and hashCode() in class InformationLoss