Exercise #7 solution redux.