Demographic accounting and model-building