sicp: added exercise 3.25