implement TextExtractor module