A simple chat server written in erlang