A main sequence for quasars