Which astronomer worked a decade before Hubble to measure the spectra of galaxies?

a) Edwin Hubble
b) Henrietta Swan Leavitt
c) Albert Einstein
d) William Herschel