add a sample

add a sample to show how the dispatcher working