refactoring in CountdownTimer.cs