problem 3.40 solution - si-manual