the feature extractor. Also added the necessary input validation to make sure this feature doesn't get misused.