Title: An application of consumer demand theory to the modelling of bilateral flows