Project 2 for Java 2