Assignment 2 java files