On Dynamic Pricing with Covariates