extracting class