SoftwareSerialExample doesn't work well.

You wrote all that before trying a compile?