Exercises from the book "Programming Erlang"