added SPI class