code for Programming Erlang, Second edition