first solution in Erlang.
ignore erlang beam files.
removed do notation, not necessasy.