Practice Problem 18.6 solution - si-manual