anchor.diff:  -module(market).
   -compile(export_all).
   
  --define(MAX_LISTINGS, 5).
  --define(MAX_BROKERS, 3).
  +-define(NUM_LISTINGS, 5).
  +-define(NUM_BROKERS, 3).
   -define(TICKER_INTERVAL, 1000).
   -define(MAX_RANDOM_SLEEP, 100).
   
  
positive.code: %% Announces current prices to brokers
  %%
  ticker(Listings, Interval) ->
      Brokers = atoms_sequence("broker", "_", 1, ?MAX_BROKERS),
  
      receive
          stop ->
  
negative.code: %% Sends 'stop' message to all registered procs
  %%
  stop() ->
      Procs = [ticker_proc] ++ atoms_sequence("broker", "_", 1, ?NUM_BROKERS),
      lists:foreach(fun(Proc) -> Proc ! stop end, Procs).
  
  
  