anchor.diff:  %% Internal
   %% ============================================================================
   
  -get_quotes() ->
  -    {ok, Sock} = gen_tcp:connect("localhost", 7777, [binary]),
  -    Msg = "\n",
  -    ok = gen_tcp:send(Sock, Msg),
  +get_quotes(Sock) ->
  +    ok = gen_tcp:send(Sock, "\n"),
       receive
  -        {tcp, Sock, Data} ->
  -            ok = gen_tcp:close(Sock),
  -            binary_to_term(Data)
  +        {tcp, Sock, Data} -> binary_to_term(Data)
       end.
   
   
  
positive.code: -record(state, {name                   :: atom()
                 ,portfolio = dict:new() :: dict()
                 ,cashflow  = []         :: list()
                 }).
  
  
  
negative.code: 
  
  terminate(_Reason, State) ->
      gen_tcp:close(State#state.ticker_sock),
      {ok, State}.
  
  
  