Edited the MarketManager class