Put loopInv example into diffrent file