finished problem, added javadoc comments