Which statement best describes the role that gravity played in the formation of our solar system?
A. Gravity allowed the nebula to expand and move outward.
B. Gravity caused the nebula to cool enough for planets to form.
C. Gravity removed excess gas and dust from the cores of the planets.
D. Gravity pulled particles of dust and gas together to form planets.