Included hashCode and Equals methods in the model classes.