my assignment 5 with javadoc