java2 class assignment1