The Effects of Inflation on Investments