Emergent phenomena and complexity