refactored account.lua (chapter 16)
added proxy (exercise 16.3)