MTA homework and correct stock class investment function from yesterday's hw.

As usual, I suspect I did not do this in the intended fashion.  And lack of time means lack of style (truer words?).