Would you re-post your code with the code tags surrounding it please? I ask because it looks like the indentations of some lines got messed up. It is not clear what part of the code is part of the class vs. what code is invoking it.