Addin first day exercise 3 of erlang