Some exercises in Erlang.