extraction of classes