mvnavinash wrote: I think It works...
Well, before you post you should test it.
Also, the idea is not to give the answer but to give clues as to how to go about getting the answer. That way the poster can look things up and learn.
The problem I have is that people can explain things quickly but I can only comprehend slowly.