added first version of dynamic pricing