nested loops lesson plan