the earth life-form was essentially a collection of water and complex carbon-based living material , kludged together over billions of earth years by a relentless process of random variation and natural selection .