an erlang chat server for exercise