problem 4.18 solution - si-manual