problem 3.21 solution - si-manual