added minimizing example to example.pl