Added sample code.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>