refactored loop.lua (chapter 3)
refactored exponents.lua (chapter 3)
refactored polynomials.lua (chapter 3)