add pseudo-code for A2_par1