What makes up a company's capital structure? Explain the purpose of determining the weighted average cost of capital for a company.