modularized classification by abstracting feature extraction