added PWM tutorial code