code to the urban&rural innerlayer of the zimdoc project