The 74HC595 is a very handy IC used in many microcontroller projects. You clock in 8 bits of data (like, on/off settings for 8 LEDs) via two lines, and when you toggle a third line, it pops these settings out on 8 outputs on the IC. So you trade 3 valuable lines on your microcontroller ..