The Stock-Flow Analysis of Investment