private public definition in dimmer class