made timer class stand-alone