What came first in the formation of earth?