Revised Timer using local inner class.
Another version of local inner class, which uses final local variable.