exercise of erlang programming with rebar