How to use shift register.

See above then.