Models for Resource Allocation in the Firm