How is a nebula related to star formation?