What exactly is your question? No one is going to do your homework for you, but if you have a particular question we will help out as best we could. For what its worth...read the API for Rectangle...