Origin of a solar system