first day of Erlang - I like the functional style