snippets of erlang