Actionscript implementation of Fowlers Money pattern