I'm kind of surprised people keep posting C++-answers when OP is using
I'm not a C# guy. The idea clearly transcends all languages and he gets the concept we showed. People have to be able to apply concepts they are taught. Better than nothing. Seems like GD.net has a lot less posting since it's been almost 5 or more years since I've made a post.