Chat server and client written in Erlang