beging working on Spi class