class extraction