exercise 5.4.pl