problem 2.40 solution - si-manual