what is the purpose of the following in the experiment of Synthesis of Methyl Salicylate

1. Phosphoric Acid

2.Methyl Anthranilate

3. Sodium Nitrite

4.Diethyl Ether

5.Nitrogen

what is the reaction scheme