Add Erlang examples for chapter 4