Your question is very vague.

Do you have code already, and have bugs or exceptions? If so, can you post the problematic code here?

If you just plain don't know what to do, I can offer this...