finish chapter 2, learn erlang syntax