add preferred_market method to Market and create test for preferred_market