Java3 class 3 assignment