Working example.

Hello Balasundaram,
I worked on the example and it's working now. Please check and accept the pull-request. 
Thanks.