pomodoro timer class refactored to use interval instead of timeout