How does earth's distance from the sun make life possible?