sicp: added exercise 3.19