add x10 sample code