Explaining the shift register