Practice Problem 18.2 solution - si-manual