Mario exercise: implemented the Pyramid class and PyramidWriter interface