refactor PriceExtractor class.