NEW example extended with javadoc generation