Using class for DomainModel