Improved domain sample

make more easy to understand