JAVA ASSIGNMENT 3