code talk 1: main loop, #8