led matrix with max 7219 help

Well, I'm trying to learn how to drive a led matrix, and I took a project from the book beginning arduino, but no matter the code i save into the arduino, all of the leds in the matrix are lit up, if someone could help me realizing what's going on, I appreciate, sorry my bad english!

Are you following this tutorial: Arduino Playground - LEDMatrix