Fixed broken example, turned into a basic echo thing

After trying to run the example, I found it didn't work (from what looked like a mistake). Unsure of what to do I turned the example into a basic standard echo program. I am more than happy to rewrite it into a fixed version of what you originally had, if I you tell me what that was.