Erlang day 2 exercises.