Heterogeneity within Communities: A Stochastic Model with Tenure Choice