Created a simple pwm module