Implemented text extraction