created the timer class