adding domain class method