added the code part of the shift register example.