The theory of the formation of stars is that a rotating nebula of gas and dust forms a spinning star at its center and the remaining matter flattens into a rotating disk around the newborn star.