Quasar evolution and gravitational collapse