adding magic methods for model instance equality comparisons