<p>Is the only problem that your code is giving unexpected results, or that it doesnt run or what?</p>