A model of local demand for education