An average-size star ejects material from its outer layers.