implemented null design pattern in calcMarketPrice() in TradeGood