Two Essays On Competition, Corporate Investments, And Corporate Earnings