Re-coding an older project in Elixir