Excersies from Erlang Programming book