First Erlang exercises. XD