Add a sample example

I guess this example is much easier to understand for beginners.
Thanks.