A Simultaneous Equation Model of the Firm for Financial Analysis and Planning