  We prove that the moduli spaces of curves of genus 22 and 23 are of general
type. To do this, we calculate certain virtual divisor classes of small slope
associated to linear series of rank 6 with quadric relations. We then develop
new tropical methods for studying linear series and independence of quadrics
and show that these virtual classes are represented by effective divisors.
