Created a TimerState class to keep track of total time elapsed