Post your updated code and I will take a look. If you have some sample input, you can attatch that as well.