adding Timer class functions