Spectra function

Constructor for the Spectra class.