When posting code, please use the highlight tags to preserve formatting. Unformatted code is pretty impossible to read.