Update ex2.pl