4th Java task