complete 'Loops' chapter