Challenge exercises from Chapter 9 of ESRI Python book