A stock-flow-fund ecological macroeconomic model 1