t-flipflop implemented and tested