created a potentiometer class