added example in Erlang

Please review. Thanks in advance.