Refactored elixir example to look more like the erlang version