added example in Erlang