Exercises and examples from the Pragmatic Programming Erlang Second Edition book