problem 3.18 solution - si-manual