LoopNode class. still not finished.