SPI Slave Reverse Engineering!

If you take Nick Gammon's slave code you have a good base to work on. It even already add to an array to buffer incoming data. Try to extend that and post your code if you get stuck.