Regimes spatial lag notebook with solutions