add code for the Timer