Added part5 java files