First functioning attempt it works ;)