Doing a little work from Erlang day 3