Element Formation in Stars and Molecule Formation in Clouds