A model of a heterogeneous neighborhood