first java assignment minor changes