add constructor to make the timer change the color