improve example 1, add example 2.