expansion pins with 74HC595

I want to do an extension for an Arduino Nano pin.

I have 8 buttons. 74HC595's outputs are related to each button:

  • Button 1 corresponds to pin 0 of 74HC595;
    .
  • Button 8 corresponds to pin 7 of 74HC595.
    By pressing one of the buttons, change the status of 74HC595 for leaving without affecting the status of other outputs.

An example, or an address is welcome.

expanderPins.JPG