don't you already initialize $class above in the same method? or am i confused by the diff view?