Class definition for controls