extract classes