moved code from sample to plugin"
Merge pull request #9 from dosht/master

moved code from sample to plugin