Updated the Timer project using inner class.