added assignment number and changed javadoc