Erlang week 1 ex 2