implemented handleMessages for Retailer and Producer
implemented handleMessages for Trader