sorry about being snarky, but if the op wants a helpful answer, then s/he needs to ask a helpful question. Just saying "I'm having trouble with this" tells us nothing. To the OP if still out there:
1) Describe your problem. Be as specific and precise as possible.
2) Show code that you have tried and describe what doesn't work and where. If you get error codes, post the entire stack trace (but read it carefully first -- your answer is often found there).
3) Put as much care and dilligence in asking your question as you'd like someone to use in answering it.
Good luck.
/Pete