added the storeSpectra class