Self-organizing communities