added new example that changes color whenever clear threshold is reached