Does this code work? I would recommend taking a good look at this. http://arduino.cc/en/Tutorial/ShiftOut