implemented sentence translation