Add spi class prototype