move classes_inheriting_quantities to classes