Initial code for analyzing district