There are six steps on the formation of a solar system. 1) solar nebula
2) planetesimals form. 3) planetesimals accrete into protoplanest 4) terrestrial planets form 5) gas giants form 6) formation or organization of smaller objects (moon, asteroids, comets)