Fix the example

The old example cannot run in the newest maven.
Merge pull request #24 from wb14123/fix-example

Fix the example