practice exercises with Erlang