adding feature extractor code