Erlang day 1 exercises.