Communicating Arduino to Basic Stamp 2(using Xbee)

Guys, I'm new to this arduino thing.

And I'm making this project to control the Boe - bot (basic stamp 2) using the arduino with Xbee and Memsic 2125 accelerometer. It is a sort of radio controlled Tilt.

Any ideas?(code and connections)

Thanks