Solutions for exercises on http://www.erlang.org/course/exercises.html