I don't want to be un-helpful but you could provide some code to get us started. I don't like the idea of doing your homework for you

Chris