finished 1st java assignment