Update ex3.pl