Please post your code in code tags. You can learn how here and then edit your post.

Then, explain what you mean by "having trouble." Explain what your code is supposed to do, what it's doing,...