refactored for loop example (chapter 4)
refactored local.lua (chapter 4)
refactor