added problem 3 java file not working