Practice Problem 5.5 solution - si-manual