created class Timer for time interval manipulation