Some erlang code, it sucks, but i just try to learn ;)