write code the elixir way