add javadoc to the example