add example code

Signed-off-by: MRSC <cloud760607@hotmail.com>