adding domain class