Self-organization of value and demand