Which of the following can be determined by studying the spectrum of a star?

the chemicals in the atmosphere of the star
the motion of the star
the temperature of the atmosphere of the star
all of the above