added ex1-2.pl