The Behavior of Chemical Elements in Stars