add equals method in DomainModel