Addition to 2,4-dienes. Halogenation of ethyl sorbate