Added hashCode and equals to the model classes