added a sample for domain class