Hello. i am new to electronics. I can count from 0 to 7 and from 7 to 0 with a 3-bit counter with JK flip flop. How can we make a counter that can count forward (0-7) when 1 is applied to the input and backwards (7-0) when 0 is applied to the input, with 1 D, one T and one JK flip flop?