Investment, Output, and the Cost of Capital