Classify the following reactions in one of the reaction type studied in this unit.
(i) Nucleophilic substitution reaction (ii) Electrophilic addition reaction
(iii) $\beta$-elimination reaction (iv) Nucleophilic substitution reaction with rearrangement.