problem 2.18 solution - si-manual