Dynamic pricing and assortment under a contextual MNL demand