Several stars, including the Sun, formed within the collapsing cloud. The gas that formed the Solar System was slightly more massive than the Sun itself. Most of the mass collected in the centre, forming the Sun; the rest of the mass flattened into a protoplanetary disc, out of which the planets and other bodies in the Solar System formed.