Assignment3 Java and Class