created Timer class