Flake implemented in Elixir