Exercises from the book Programming Erlang Second Edition