added javadoc example