Update repeating.cpp