added pwm class