Modelling consumer behaviour