As far as I can tell those errors are occurring in the pyramid_final class, not the Pyramid class. I don't see a clear execution order here, what does the rest of the code look like?