add sample code

1. add sample code
2. update some code.