This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Please read our FAQ on how to UseCodeTags (<--that is a link). Unformatted code is hard to read. Many folks will see the unformatted source and decide it is not worth their valuable time to try and decipher what you wrote. Posting properly formatted code will most likely help you get an answer faster.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors