A toy chat server in Erlang for my own learning