revert ex2_3.pl