LoopSt has been redesigned as nested class