got exercise ten working thanks to some code I cribbed from greg kepler