Attempted to create a separate spi class