rewrote the clock/timer class