added PWM class