timer: created Timer class and its functions; DONE