added sample as code.