Evolution of symbiotic relationships