Consider having the code to retrieve the market value in the stock class and just calling it here. DRY (don't repeat yourself)