code refactoring in CountdownTimer.cs