An aggregate demand model for domestic airlines