Rebuilt gauge widget using TDD