Create domain sample code