these are the main components of the outer layers of the star