Xbee Communication Sketch Example

is there a free Arduino to Arduino communication sketch using xbees that i could use and modify

Each XBee transmits over-the-air whatever is sent to the serial port, using Serial,print(), Serial.println(), or Serial.write(). Each XBee puts on the serial port anything that it receives over-the-air, for the Arduino to get using Serial.read().

It hardly seems necessary to provide a sample application for such a trivial task.

What kind of XBees do you have, and what sort of information do you want to communicate? PaulS described AT or "transparent" operation, this is easy to do but limited in several ways. Then there is API operation, which is more flexible, a little more complicated, but there are some good libraries available. I have an example of the latter if you're interested, using the Series 2 XBees.