Practice Problem 18.7 solution - si-manual