The theory of endosymbiosis