Can you define 'not working good'? What do you put in, and what do you get out? Are there any exceptions? In situations like this it helps to post a short, compilable, and runnable example which...