Porting code example (Ruby to Elixir)

I still don’t understand why you did away with the modules.
Where would you store functions that manipulate those structs?