Using Ping and LED with MAX/MSP

Hello,

I'm an Art student at UCSC and need help programming the Arduino Decimilia to control a Ping))) and LED. I am trying to merge the Messenger Arduino Code and Ping Code. I'm controlling each one individually with Max/MSP. I found both codes on the Arduino site.
arduino.cc/playground/Code/Messenger
arduino.cc/en/Tutorial/Ping

Any help will be greatly appreciated.

-Leo

What have you tried? Did it work? If not, what didn't work?