The separation of the Earth into layers was the result of the:

A. presence of water at Earth's surface.
B. initial collection of materials and their position in Earth.
C. decrease in temperature downward toward the core.
D. differing densities of the rock and mineral materials.
E. gravitational force created by the rotating Earth.