anchor.diff:      Port = open_port({spawn, Drv}, [binary]),
       loop(#state{port=Port,rings = dict:new()}).
       
  +
  +    
  +    
   loop(#state{port=Port,rings=Rings} = State) ->
       receive
           {create_ring, Pid, {Ring, NumReplicas}} ->
  
positive.code:                     KeySize = size(Key),
                      Port ! {self(), {command, <<5:8, Index:32, KeySize:32, Key/binary>>}},
                      receive
                          {Port, {data, <<0:8>>}} ->
                              Pid ! {error, not_found};
                          {Port, {data, <<1:8>>}} ->
                              Pid ! {error, unknown_error};
                          {Port, {data, <<Node/binary>>}} ->
                              Pid ! {ok, Node};
                          _ ->
                              Pid ! {error, unknown_error}
                      end;
                  _ ->
                      Pid ! {error, ring_not_found}
  
negative.code:                     receive
                          {Port, {data, <<0:8>>}} ->
                              Pid ! ok;
                          {Port, {data, <<1:8>>}} ->
                              Pid ! {error, unknown_error}
                      end;
                  _ ->
  