no problem. I just know people post homework, which there isn't a problem with when two things are done:
1) mark it as homework
2) say, here is some code I've tried, can you help me fix it
my first inkling was that the above was homework.
Hope you improve enough to come back and help.