Erlang by examples