implement extractor for quote, as part of #2