What is the major product of each of the following reactions?
$$\text { a. } \mathrm{HOCH}_{2} \mathrm{CH}_{2} \mathrm{CH}_{2} \mathrm{CH}=\mathrm{CH}_{2}+\mathrm{Br}_{2} \quad \overrightarrow{\mathrm{CH}_{2} \mathrm{Cl}_{2}}$$
$$\text { b. } \mathrm{HOCH}_{2} \mathrm{CH}_{2} \mathrm{CH}_{2} \mathrm{CH}_{2} \mathrm{CH}=\mathrm{CH}_{2}+\mathrm{Br}_{2} \quad \overrightarrow{\mathrm{CH}_{2} \mathrm{Cl}_{2}}$$