In the first place, you didn't say what about the original code didn't "work." Did it run for a while and then throw an exception? Or what? When you say something didn't "work" it leaves it up to...