Replacement of a hydrogen atom in a hydrocarbon by an alkoxy or carboxyl group yields a class of compounds known as ethers. Ethers are classified as symmetrical or unsymmetrical on the basis of groups attached to the oxygen atoms. Diethyl ether, a symmetrical ether, has been widely used as an inhalation anesthetic. Ethers can be prepared by acid catalyzed intermolecular dehydration of alcohols and Williamson's synthesis. Acid catalyzed dehydration of alcohols is not generally preferred as it gives a mixture of elimination and substitution products. In Williamson's synthesis, an alkyl halide is allowed to react with sodium alkoxide. Ethers containing substituted Alkyl groups may also be prepared by this method. The C-O bond in ether is weakly polar and is cleaved under drastic conditions with excess of hydrogen halides. In electrophilic substitution, the alkoxy group deactivates the aromatic ring and directs the incoming group to ortho and para positions.