modified : agent.rb, market.rb