early version of token ring module in Erlang.