Multiple PWM signal reading on Arduino Mega 2560

Thank you so much!
This really works!!