Erlang code for the course Distributed Systems, Basic Course.