added an example in README.rst and examples in ./example/