update with sample from Tao
Merge pull request #45 from gem-sw/master

update with sample from Tao