The starlight passing through the exoplanet’s atmosphere is imprinted with the spectral signatures of the gases in the atmosphere