Connecting two Arduinos Wirelessly via Bluetooth?

I am trying to connect two Arduino boards wirelessly via Bluetooth so that one can transmit data to the other. I have looked into the Bluetooth HC-05 module to do so but I'm not sure exactly how to set it up or code it through the Arduino software. Has anyone had success with this? I looked at using XBees but they are expensive. I appreciate any help.