The Synthesis of the Elements and the Formation of Stars