wrote word-frequency.lua (chapter 10)