init Tim class for timers