The reaction is carried out in the presence of a base e.g. sodium hydride or potassium carbonate, in a solvent such as dimethylformamide or acetone respectively, to give an intermediate of formula (X) ##STR8## from which the amine (III) in which X is --CH2 -- may be formed by cleavage of the phthalimide protecting group.