Erlang Day1 exercise 1