completed the super-simple untested spectral template model script