Finished class for controlling shift register.