Set initial state for CppLoops demo