Erlang: Week1 Ex 3