add while to mystart.cpp