How do I clean up this code from an example in the PragProg elixir course?

Did you try to run it? I had a few problems…