Improved the javadoc sample code