Refactor code to be consistent with other tests.
Solve problem 45 using Erlang.