This is on a review for my upcoming exam. I am lost on how the next state works. I understand that the d flipflop is whatever state d is in. However, how does the next state change in all this?