Added some erlang snippets that do similar things