update sicp: answer(2.29)