Formation of Second Generation Stars in Globular Clusters