Exercises and examples from http://www.erlang.org/course/course.html